package top.hmtools.javaFX;

import java.net.URL;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

/**
 * @author Jianghaibo
 *
 */
public class FxmlHelloWorld extends Application {
    @Override
    public void start(Stage stage) throws Exception {
        URL resource = this.getClass().getResource("fxml_example.fxml");
        Parent root = FXMLLoader.load(resource);
        Scene scene = new Scene(root, 300, 275);
        stage.setTitle("FXML Welcome");
        stage.setScene(scene);
        stage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}
